package com.gxc.healthfood.service;

import com.gxc.healthfood.entity.UserNotificationSettings;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author hasee
* @description 针对表【user_notification_settings】的数据库操作Service
* @createDate 2025-10-04
*/
public interface UserNotificationSettingsService extends IService<UserNotificationSettings> {
    
    /**
     * 根据用户ID获取通知设置
     * @param userId 用户ID
     * @return 用户通知设置
     */
    UserNotificationSettings getByUserId(Long userId);
    
    /**
     * 保存或更新用户通知设置
     * @param settings 用户通知设置
     * @return 是否成功
     */
    boolean saveOrUpdateSettings(UserNotificationSettings settings);
}